/**
 * MovieElement class
 *
 * A MovieElement is an object which encapsulates an HTML representation
 * of a MovieInfo which is fetched from theMovieDatabase servers.
 *
 * @author Jim Carroll
 * @version 1.0
 * 
 * Last modified: 2012.12.3
 */
 
/**
 * MovieElement(MovieInfo)
 *
 * Constructs a new MovieElement from a Movie object.
 *
 * @param Movie
 *				A Movie object contains the information about a specific film which
 *				will eventually be printed to the page and shown to the user.
 */
function MovieElement(movieInfo) {
	/**
	 * tags
	 *
	 * An HTML representation of the movieInfo object.
	 */
	var tags = '<div class="movie" onclick="javascript:details(' + movieInfo.id + ')">'
		+ '<img class="poster" src="' + movieInfo.poster_url + '">'
		+ '<h3 class="title">' + movieInfo.title + '</h3>'
		+ '<img class="dvd" src="img/dvd_small.png"></div>'
		
	return tags;
}